import './SexFilter.css'

import React from 'react'

export const SexFilter = (props) => {
  const valueChanged = (e) => {
      if (props.value === e.target.value) return
      props.onChanged(e.target.value)
  }
  return (
    <div>年份：
        <select value={props.value} onChange={valueChanged}>
            <option value="全部">全部</option>
            <option value="男">男</option>
            <option value="女">女</option>
        </select>
    </div>
  )
}
